home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gdosexam / gdosexam.txt < prev   
Text File  |  1995-04-27  |  2KB  |  47 lines

  1. Not being a whiz kid programmer, I toiled slowly through reading material on
  2. SpeedoGdos and Gdos, trying to load a gdos font and print it on the screen.
  3.  
  4. Being part of the Hisoft Basic Gemvdi library, I did not find the Hisoft manual
  5. example very helpful, particularly in the case of v_gtext where the
  6. manual specified the following:
  7.  
  8. v_gtext(xcoordinate,ycoordinate,textstring)
  9. I tried many times to compile this, each time with an error, before
  10. I finally figured out that you are not supposed to enclose the parameters in
  11. brackets, contrary to the manual.
  12.  
  13. Thus, the statement
  14.  
  15. v_gtext 100,100,"Yabadabadoo"
  16.  
  17. will write the text string whereas
  18.  
  19. v_gtext(100,100,"Yabadabadoo") as the manual says, will only generate a compiler
  20. error.
  21.  
  22. You do not need to open a virtual workstation. I suppose Hisoft Basic does this
  23. for you, although the manual lists the call to open the workstation, mentioning
  24. you need the manual for other library calls.
  25.  
  26. I am trying to learn Hisoft Basic 2.10 and find there is little source code out
  27. there in the public domain.
  28.  
  29. I would be very interested in corresponding with others trying to learn the
  30. language, and posting source code problems and solutions.
  31.  
  32. The source code I have included in this file does the following:
  33.  
  34. 1. Checks to make sure that gdos or speedogdos is loaded.
  35. 2. Loads the fonts from the hard drive.
  36. 3. Lists the fontnames, index and number on the screen.
  37. 4. Selects Dutch font, sets point size to 36 and colour to red
  38. 5. Prints yabadabadoo on the screen
  39.  
  40. Very simplistic, yet it might help some others avoid the frustrations
  41. that I went through.
  42.  
  43. Tom Wilkinson
  44. 560 7 St. S.E.
  45. Salmon Arm, British Columbia
  46. Canada
  47. V1E 4E6